package cn.itcast.wanxinp2p.consumer.mapper;

import cn.itcast.wanxinp2p.consumer.domain.Consumer;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

@Mapper
public interface ConsumerMapper  {

    Consumer selectByMobile(String mobile);

    Integer register(Consumer consumer);

    Integer deleteByMobile(String mobile);


    Integer updateByStatus(@Param("status") Integer status,@Param("mobile") String mobile);

    Integer update(Consumer consumer);

    Consumer selectById(Long consumerId);


    Consumer selectByUsername(String username);

    Consumer selectByRequestNo(String requestNo);
}